﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="ActivityItemFlatList.aspx.cs" Inherits="WebFormsSample.ActivityItemFlatList" %>

<%@ Import Namespace="ActivityTrackingLog.Web.Helpers" %>
<%@ Import Namespace="ActivityTrackingLog.Web.Utils" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Activity Log for ActivityItem
    </h2>
    <p>
        Data in the table below is embedded into the page on the SERVER side
    </p>
    <h2>
        Source code:
    </h2>
    <p>
        <img class="max-width" src="../Img/activity_item_flatlist_call.PNG" />
    </p>
    <h2>
        Control Output:
    </h2>
    <div class="margin-top" id="statistics_control_container">
        <%= HtmlHelper.RenderList<ActivityTrackingLog.Data.ActivityItem>(HtmlHelper.ViewTypeEnum.Control, true, 0, 25, 
        new[] { 
            new ColumnData("Sequence"), 
            new ColumnData("TimeUtc"),  
            new ColumnData("ActivityType"), 
            new ColumnData("Category"), 
            new ColumnData("Activity"), 
            new ColumnData("UserId"), 
            new ColumnData("ClientHost"), 
            new ColumnData("PageUrl") } )
        %>
    </div>
    <script type="text/javascript">
        $(function () {
            logClientSideActivity('ActivityItemFlatListLoaded');
        })
    </script>
</asp:Content>
